<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
        "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <title></title>
</head>
<body>
<label for="base64"></label>
<textarea id="base64" rows="40" cols="80"></textarea>
<button onclick="rom2js();">rom2js</button>
<script type="text/javascript">
    function rom2js(){
        var txtEl = document.getElementById('base64');
        var lines = txtEl.value.split(/\r?\n/g);
        var k = lines.length;
        while (k -- > 0) {
            lines[k] = "'" + lines[k] + "'";
        }
        txtEl.value = '__callback__([\n' + lines.join(',\n') + '\n].join(\'\'));';
    }
</script>
</body>
</html>